package com.sevencar.activity.splash;

import com.sevencar.activity.MainActivity;
import com.sevencar.util.PreferencesUtils;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;



public class HomeAct extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	protected void onResume() {
		super.onResume();
		
		boolean init = PreferencesUtils.getBoolean(this, "inited");
		Intent ii;
		if(init){
			ii = new Intent(this,MainActivity.class);
		}else {
			ii = new Intent(this,GuideActivity.class);
		}
		startActivity(ii);
		finish();
		
	}

}